<?xml version="1.0" encoding="gb2312"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	<xsl:template match="/BusinessType/Item">
		<table id="Table1" style="table-layout:fixed;" cellspacing="0" cellpadding="0" width="100%" class="singleSelectTree" defaultShowLevel="1">
			
			<xsl:for-each select="Domain">
					<xsl:call-template name="Items">
					<xsl:with-param name="code" select="0"/>
					</xsl:call-template>
			</xsl:for-each>
			
			<xsl:for-each select="Group/Item">
				<xsl:variable name="code">
					0.<xsl:value-of select="position()"/>
				</xsl:variable>
								
				<tr height="20px" allowselect="1" is_hide="false" onclick="Table1.clickNode(this)" ondblclick="okClick()"
						onmouseover='this.bgColor="#E3E9F4"' onmouseout='this.bgColor="#ffffff"'>
					<xsl:attribute name="value"><xsl:value-of select="../@name"/></xsl:attribute>
					<xsl:attribute name="code"><xsl:value-of select="$code"/></xsl:attribute>
					<xsl:attribute name="title"><xsl:value-of select="../@name"/></xsl:attribute>
					<td nowrap="true">
						<span></span><label style="CURSOR: hand;"></label>
						<img src="/_imgs/ico_18_queue.gif" align="absmiddle"/>
						<xsl:value-of select="../@name"/>
					</td>
				</tr>
				
				<xsl:for-each select="Domain">
					<xsl:call-template name="Items">
						<xsl:with-param name="code" select="$code"/>
					</xsl:call-template>
				</xsl:for-each>
			</xsl:for-each>
			
		</table>
	</xsl:template>
	
	<xsl:template name="Items">
		<xsl:param name="code"/>
		<xsl:for-each select=".">
			<tr height="20px" allowselect="1" is_hide="false" onclick="Table1.clickNode(this)" ondblclick="okClick()"
				onmouseover='this.bgColor="#E3E9F4"' onmouseout='this.bgColor="#ffffff"'>
				<xsl:attribute name="value"><xsl:value-of select="@name"/></xsl:attribute>
				<xsl:attribute name="code"><xsl:value-of select="$code"/>.<xsl:value-of select="position()"/></xsl:attribute>
				<td>
					<span></span><label style="CURSOR: hand;display:none;"></label>
					<img src="/_imgs/ico_16_10.gif" align="absmiddle"/>
					<xsl:value-of select="@name"/>
				</td>
			</tr>
		</xsl:for-each>
	</xsl:template>
</xsl:stylesheet>


  